package com.seaside.park.controller.registration;

import com.seaside.common.bean.Result;
import com.seaside.park.mapper.EnrollMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/registration")
@Slf4j
public class RegistrationController {

    @Autowired
    private EnrollMapper enrollMapper;

    @RequestMapping("/index")
    public String index() {
        return "registration/index";
    }

    @RequestMapping("/enroll")
    @ResponseBody
    public Result<Boolean> enroll() {
        
        return Result.OK("恭喜您报名成功，工作人员会第一时间和您取得联系!");
    }
}
